/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 *
 * @author banhbaochay
 */
public class Message {
    
    public static void initialize(Locale locale) {
        rs = ResourceBundle.getBundle("resourcebundle.Message", locale);
    }// end initialize method
    
    public static String NOT_PERMISSION() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NOT_PERMISSION);
    }// end NOT_PERMISSION method
    
    public static String NOT_GET_ALBUM_LIST() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NOT_GET_ALBUM_LIST);
    }// end NOT_GET_ALBUM_LIST method
    
    public static String NOT_SUPPORTED_BROWSER() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NOT_SUPPORTED_BROWSER);
    }// end NOT_SUPPORTED_BROWSER method
    
    public static String NOT_SET_PHOTO_COUNT() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NOT_SET_PHOTO_COUNT);
    }// end NOT_SET_PHOTO_COUNT method
    
    public static String NO_DATA_SAVE() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NO_DATA_SAVE);
    }// end NO_DATA_SAVE method
    
    public static String UPLOAD_DONE() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(UPLOAD_DONE);
    }// end UPLOAD_DONE method
    
    public static String NO_SELECT_ROW_COPY() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NO_SELECT_ROW_COPY);
    }// end NO_SELECT_ROW_COPY method
    
    public static String NO_SELECT_ROW_SHOW() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NO_SELECT_ROW_SHOW);
    }// end NO_SELECT_ROW_SHOW method
    
    public static String SELECT_ROW_FAILED_UPLOAD() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(SELECT_ROW_FAILED_UPLOAD);
    }// end SELECT_ROW_FAILED_UPLOAD method
    
    public static String URL_COPY_CLIPBOARD_DONE() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(URL_COPY_CLIPBOARD_DONE);
    }// end URL_COPY_CLIPBOARD_DONE method
    
    public static String BLOG_COPY_CLIPBOARD_DONE() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(BLOG_COPY_CLIPBOARD_DONE);
    }// end BLOG_COPY_CLIPBOARD_DONE method
    
    public static String SAVE_DONE() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(SAVE_DONE);
    }// end SAVE_DONE method
    
    public static String NEED_REQUEST() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(NEED_REQUEST);
    }// end NEED_REQUEST method
    
    public static String ACCESS_DONE() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(ACCESS_DONE);
    }// end ACCESS_DONE method
    
    public static String ACCESS_FAILED() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(ACCESS_FAILED);
    }// end ACCESS_FAILED method
    
    public static String FINISH_UPLOAD() {
        return (rs == null) ? NULL_BUNDLE : rs.getString(FINISH_UPLOAD);
    }// end FINISH_UPLOAD method
    
    private static ResourceBundle rs;
    private static final String NULL_BUNDLE = "Can't load resource message";
    
    private static final String NOT_PERMISSION = "not-permission";
    private static final String NOT_GET_ALBUM_LIST = "not-get-album-list";
    private static final String NOT_SUPPORTED_BROWSER = "not-supported-browser";
    private static final String NOT_SET_PHOTO_COUNT = "not-set-photo-count";
    private static final String UPLOAD_DONE = "upload-done";
    private static final String SAVE_DONE = "save-done";
    private static final String NO_DATA_SAVE = "no-data-save";
    private static final String NO_SELECT_ROW_SHOW = "no-select-row-show";
    private static final String NO_SELECT_ROW_COPY = "no-select-row-copy";
    private static final String SELECT_ROW_FAILED_UPLOAD = "select-row-failed-upload";
    private static final String URL_COPY_CLIPBOARD_DONE = "url-copy-clipboard-done";
    private static final String BLOG_COPY_CLIPBOARD_DONE = "blog-copy-clipboard-done";
    private static final String NEED_REQUEST = "need-request";
    private static final String ACCESS_DONE = "access-done";
    private static final String ACCESS_FAILED = "access-failed";
    private static final String FINISH_UPLOAD = "finish-upload";
}// end Message class

